package com.ldk.framework.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ldk.base.framework.service.impl.BaseService;
import com.ldk.base.framework.dao.IBaseDAO;
import com.ldk.framework.service.IAreaService;
import com.ldk.framework.dao.IAreaDAO;
import com.ldk.framework.entity.Area;

import java.util.List;

/**
* AreaService接口实现类
* @author mqy
*/
@Service
public class AreaService extends BaseService<Area> implements IAreaService {

	@Autowired
	private IAreaDAO areaDAO;

	@Override
	protected IBaseDAO<Area> getBaseDao() {
     	return this.areaDAO;
	}

	@Override
	public List<Area> getChildAreaList(String dbKey, long parentId) {

		return this.areaDAO.getChildAreaList(dbKey, parentId);
	}
}
